package com.itbac.thread;

import java.util.concurrent.Callable;

/**
 * @author: BacHe
 * @email: 1218585258@qq.com
 * @Date: 2021/11/2 22:48
 */
public class CallableContext<T> {

    private Callable<T> callable;

    private String logId;

    public CallableContext(Callable<T> callable, String logId) {
        this.callable = callable;
        this.logId = logId;
    }

    public Callable<T> getCallable() {
        return callable;
    }

    public CallableContext<T> setCallable(Callable<T> callable) {
        this.callable = callable;
        return this;
    }

    public String getLogId() {
        return logId;
    }

    public CallableContext<T> setLogId(String logId) {
        this.logId = logId;
        return this;
    }
}
